package com.yi.gostockgo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 股民持股信息
 * </p>
 *
 * @author liandyao
 * @since 2020-04-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class GoHold extends Model<GoHold> {

    private static final long serialVersionUID=1L;

    /**
     * 持股主键
     */
    @TableId(value = "hold_id", type = IdType.ASSIGN_ID)
    private String holdId;

    /**
     * 股票编码
     */
    private String stockCode;

    /**
     * 股票名称
     */
    private String stockName;

    /**
     * 目前收益
     */
    private Integer earnings;

    /**
     * 收益率
     */
    private Double yield;

    /**
     * 当前持有数量
     */
    private Integer qts;

    /**
     * 账号
     */
    private String accountId;

    /**
     * 总费用
     */
    private Integer sumMoney;


    @Override
    protected Serializable pkVal() {
        return this.holdId;
    }

}
